import { AttrData } from "../attr/AttrData";
import { RoleData } from "../../new/role/RoleData";

/**
 * 敌人管理器(创建敌人)
 */
export class EnemyMgr {
    static enemyCount = 3;
    static showIds: string[] = ["", "221011", "224041", "225131"]
    static enemy(): RoleData[] {
        let teamData = []
        for (let i = 1; i <= this.enemyCount; i++) {
            let data: RoleData = {
                uid: "enemy" + i,
                group: "enemy",
                showId: this.showIds[i],
                attrData: AttrData.getAttrs(),
                skillData: this.skillIds[this.showIds[i]],
                pos: i + 3,
                face: -1
            }
            teamData.push(data)
        }
        return teamData;
    }

    static skillIds = {
        "221011": [1001, 1002, 1006, 1004],
        "224041": [1001, 1002, 1005, 1004],
        "225131": [1001, 1002, 1003, 1004]
    }
}